<template>
	
		<mdp-select-att @import-top="(c)=>$refs['initDialog'].open({callback:c})" v-if="projectInfo?.id" crely-type="xm-project" :crely-id="projectInfo.id"  subOpType="mng"/>
		<mdp-dialog ref="initDialog" v-if="projectInfo?.id">
			<template #default="{data,dialog}">
				<xm-init-file-cate crely-type="xm-project" :crely-id="projectInfo.id" :xm-type="projectInfo.xmType" @init="()=>{data.callback();dialog.close()}" />
			</template>
		</mdp-dialog> 
</template>

<script> 
	  
	import { mapState } from 'pinia'
import { useUserStore } from '@/store/modules/user';  
import { useXmStore } from '@/store/modules/xm';   

	export default {  
		computed: {
		    ...mapState(useUserStore,[
		      'userInfo','roles'
				]), 
				
		    ...mapState(useXmStore,['projectInfo']), 
		}, 
		watch:{
			 
		},
		data() {
			return {  
			}
		},//end data
		methods: {  
			
		},//end methods
		components: {   
			//在下面添加其它组件
		}, 
		activated(){ 
		},
		mounted() {   
		}
	}
</script>

<style scoped />